<template>
  <view @click="handleLogin">登录</view>
</template>
<script setup lang="ts">
import { ref } from "vue";
import { useUserStore } from "@/store";
const user = useUserStore();
const token = ref("123");
const handleLogin = () => {
  user.setToken(token.value);
};
</script>
